package com.mj.listen1._01数组;

public class Main {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();
        arrayList.add(10);
        arrayList.add(20);
        arrayList.add(30);
        arrayList.add(40);
        arrayList.add(50);

//        for (int i = 0; i < 20; i++) {
//            arrayList.add(i);
//        }
//
//        System.out.println(arrayList.set(2,0));
//        System.out.println(arrayList);
        System.out.println(arrayList.remove(4));
        System.out.println(arrayList);
    }
}
